diff --git a/aegisub/src/utils.cpp b/aegisub/src/utils.cpp index 58e0ab9a4..7b911b050 100644 --- a/aegisub/src/utils.cpp +++ b/aegisub/src/utils.cpp @@ -61,35 +61,6 @@ #include "utils.h" - -#ifndef __LINUX__ - -/// @brief Absolute of 64 bit int -/// @param input -/// @return -/// -int64_t abs64(int64_t input) { - if (input < 0) return -input; - return input; -} -#endif - - - -/// @brief Count number of matches of a substr -/// @param parent -/// @param child -/// @return -/// -int CountMatches(wxString parent,wxString child) { - size_t pos = wxString::npos; - int n = 0; - while ((pos = parent.find(child,pos+1)) != wxString::npos) n++; - return n; -} - - - /// @brief Make a path relative to reference /// @param _path /// @param reference diff --git a/aegisub/src/utils.h b/aegisub/src/utils.h index b8796426d..b15927522 100644 --- a/aegisub/src/utils.h +++ b/aegisub/src/utils.h @@ -55,10 +55,6 @@ class wxWindow; /// DOCME typedef std::vector > IntPairVector; -#ifndef __LINUX__ -int64_t abs64(int64_t input); -#endif -int CountMatches(wxString parent,wxString child); wxString MakeRelativePath(wxString path,wxString reference); wxString DecodeRelativePath(wxString path,wxString reference); wxString AegiFloatToString(double value);