]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include: Remove unused code: class triple.
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 25 Nov 2014 03:35:44 +0000 (11:35 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 12 Dec 2014 06:23:35 +0000 (14:23 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/include/Makefile.am
src/include/encoding.h
src/include/triple.h [deleted file]
src/mds/events/EMetaBlob.h

index 7fa1e18b96f6fe79eedc4ca55e4b6639b7fd8b2b..e0952d95e82624885477c0a72906c0cf22469cb9 100644 (file)
@@ -67,7 +67,6 @@ noinst_HEADERS += \
        include/str_list.h \
        include/str_map.h \
        include/stringify.h \
-       include/triple.h \
        include/types.h \
        include/utime.h \
        include/elist.h \
index 70d718c2df7036f637e5b4d3b215568c4206fa92..286597c02b9873d83c243fc56e6b2b6660a338c8 100644 (file)
@@ -295,7 +295,6 @@ inline void decode(T &o, bufferlist& bl)
 #include "include/unordered_map.h"
 #include "include/unordered_set.h"
 
-#include "triple.h"
 
 // boost optional
 template<typename T>
@@ -355,23 +354,6 @@ inline void decode(std::pair<A,B> &pa, bufferlist::iterator &p)
   decode(pa.second, p);
 }
 
-// triple
-template<class A, class B, class C>
-inline void encode(const triple<A,B,C> &t, bufferlist &bl)
-{
-  encode(t.first, bl);
-  encode(t.second, bl);
-  encode(t.third, bl);
-}
-template<class A, class B, class C>
-inline void decode(triple<A,B,C> &t, bufferlist::iterator &p)
-{
-  decode(t.first, p);
-  decode(t.second, p);
-  decode(t.third, p);
-}
-
-
 // list
 template<class T>
 inline void encode(const std::list<T>& ls, bufferlist& bl)
diff --git a/src/include/triple.h b/src/include/triple.h
deleted file mode 100644 (file)
index c291712..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- 
-// vim: ts=8 sw=2 smarttab
-/*
- * Ceph - scalable distributed file system
- *
- * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
- *
- * This is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software 
- * Foundation.  See file COPYING.
- * 
- */
-
-#ifndef CEPH_TRIPLE_H
-#define CEPH_TRIPLE_H
-
-template<class A, class B, class C>
-class triple {
- public:
-  A first;
-  B second;
-  C third;
-
-  triple() {}
-  triple(A f, B s, C t) : first(f), second(s), third(t) {}
-};
-
-#endif
index dd9c1cdc3926ad50df9825a0002d0ba67436e163..5f44f4ff6d4e99a6180e170a82974258586709b8 100644 (file)
@@ -22,7 +22,6 @@
 #include "../CDentry.h"
 #include "../LogSegment.h"
 
-#include "include/triple.h"
 #include "include/interval_set.h"
 
 class MDS;