diff --git a/Applications/Utils/MeshEdit/RemoveGhostData.cpp b/Applications/Utils/MeshEdit/RemoveGhostData.cpp
index 602cc6809ff1306997b16dd0cad5581ee9215bb2..14b602c869580fe56593b81724063c7aa183b023 100644
--- a/Applications/Utils/MeshEdit/RemoveGhostData.cpp
+++ b/Applications/Utils/MeshEdit/RemoveGhostData.cpp
@@ -44,7 +44,6 @@ int main (int argc, char* argv[])
     vtkSmartPointer<vtkXMLPUnstructuredGridReader> reader =
         vtkSmartPointer<vtkXMLPUnstructuredGridReader>::New();
     reader->SetFileName(input_arg.getValue().c_str());
-    vtkSmartPointer<vtkUnstructuredGrid> mesh = reader->GetOutput();
 
     vtkSmartPointer<vtkRemoveGhosts> ghosts =
         vtkSmartPointer<vtkRemoveGhosts>::New();