diff --git a/FileIO/AsciiRasterInterface.cpp b/FileIO/AsciiRasterInterface.cpp
index 3400a123b50de930e7cf4e479c1a6fd14c334f4d..0b601206d837988b380ec6711cc39bc3de263028 100644
--- a/FileIO/AsciiRasterInterface.cpp
+++ b/FileIO/AsciiRasterInterface.cpp
@@ -216,7 +216,9 @@ void AsciiRasterInterface::writeRasterAsASC(GeoLib::Raster const& raster, std::s
     out.close();
 }
 
-bool allRastersExist(std::vector<std::string> const& raster_paths)
+
+/// Checks if all raster files actually exist
+static bool allRastersExist(std::vector<std::string> const& raster_paths)
 {
 	for (auto raster = raster_paths.begin(); raster != raster_paths.end();
 	     ++raster)
diff --git a/FileIO/AsciiRasterInterface.h b/FileIO/AsciiRasterInterface.h
index 6f87111b0dfd1dc7dfa758d67a59f44a296df63b..0e46eebaf2611728cfbd2ec21b2c396811c00b18 100644
--- a/FileIO/AsciiRasterInterface.h
+++ b/FileIO/AsciiRasterInterface.h
@@ -56,10 +56,6 @@ private:
 /// otherwise the returned vector contains pointers to the read rasters.
 boost::optional<std::vector<GeoLib::Raster const*>> readRasters(
     std::vector<std::string> const& raster_paths);
-
-/// Checks if all raster files actually exist
-bool allRastersExist(std::vector<std::string> const& raster_paths);
-
 }
 
 #endif /* ASCIIRASTERINTERFACE_H_ */