]> git.tdb.fi Git - libs/gl.git/blobdiff - source/tag.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / tag.cpp
diff --git a/source/tag.cpp b/source/tag.cpp
deleted file mode 100644 (file)
index 76adf7d..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "tag.h"
-
-namespace {
-
-template<typename T>
-inline unsigned hash(T begin, T end)
-{
-       unsigned result=0;
-       for(T i=begin; (i!=end && *i); ++i)
-               result=((result>>29)|(result<<5))^static_cast<unsigned char>(*i);
-       return result;
-}
-
-}
-
-namespace Msp {
-namespace GL {
-
-Tag::Tag(const char *s):
-       id(s ? hash<const char *>(s, 0) : 0)
-{ }
-
-Tag::Tag(const std::string &s):
-       id(hash(s.begin(), s.end()))
-{ }
-
-} // namespace GL
-} // namespace Msp