diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-08-30 21:09:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-08-30 21:09:52 +0900 |
| commit | e4fd51195d742924128d8576f4bd22b33ba8febb (patch) | |
| tree | a4104ad086c93e31f74f10156d12b5ca83df7564 | |
| parent | 366e2e8f795e82e2c8472bcf1cd0a892550789a9 (diff) | |
Remove unused file
| -rw-r--r-- | test.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test.cc b/test.cc deleted file mode 100644 index d39babdd..00000000 --- a/test.cc +++ /dev/null @@ -1,16 +0,0 @@ -#include <iostream> -#include <algorithm> - -int main() { - std::string filepath = "/ahue/hue/hue/kuk.jpg"; - auto fn = filepath; - std::string ext; - auto idx = fn.find_last_of("."); - auto slash = fn.find_last_of("\\/"); - if (idx != std::string::npos && (slash == std::string::npos || slash < idx)) { - ext = fn.substr(idx); - fn = fn.substr(0, idx); - } - std::cout << "fn:" << fn << " ext:" << ext; - return 0; -} |
