From 909a0ca2808d894fb512129a9e7cea66f986f4b4 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 27 Mar 2012 00:49:05 +0000 Subject: [PATCH] Remove some unused functions Originally committed to SVN as r6611. --- aegisub/src/utils.cpp | 29 ----------------------------- aegisub/src/utils.h | 4 ---- 2 files changed, 33 deletions(-) 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);