From 965775423b4bef7d85a429faf6e9d6489b0a9967 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Thu, 8 Jan 2015 23:58:00 +0100 Subject: [PATCH] Remove useless forward declarations Instead move the 'static' keyword to the function implementation. --- tools/dmake.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tools/dmake.cpp b/tools/dmake.cpp index d9b1636d2..c352ad60e 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -27,25 +27,20 @@ #include "../cli/filelister.h" -static std::string builddir(std::string filename); -static std::string objfile(std::string cppfile); -static void getDeps(const std::string &filename, std::vector &depfiles); - - -std::string builddir(std::string filename) +static std::string builddir(std::string filename) { if (filename.compare(0,4,"lib/") == 0) filename = "$(SRCDIR)" + filename.substr(3); return filename; } -std::string objfile(std::string cppfile) +static std::string objfile(std::string cppfile) { cppfile.erase(cppfile.rfind(".")); return builddir(cppfile + ".o"); } -void getDeps(const std::string &filename, std::vector &depfiles) +static void getDeps(const std::string &filename, std::vector &depfiles) { // Is the dependency already included? if (std::find(depfiles.begin(), depfiles.end(), filename) != depfiles.end())