]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common, msg: Remove dead code.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 21:06:53 +0000 (14:06 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 21:06:53 +0000 (14:06 -0700)
Looks like these never went anywhere.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/common/cas.cc [deleted file]
src/common/cas.h [deleted file]
src/msg/Dispatcher.cc [deleted file]

diff --git a/src/common/cas.cc b/src/common/cas.cc
deleted file mode 100644 (file)
index 5505097..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-
-#include "cas.h"
-
-object_t calc_cas_name(bufferlist &bl)
-{
-
-
-}
-
-
-void find_rabin_markers(bufferlist &bl, uint64_t bloff, list<uint64_t> &chunks_offsets)
-{
-  
-  
-}
-
-
-  tid_t write_cas_object(inodeno_t parent,
-                 ceph_object_layout ol, 
-                 bufferlist &bl, int flags,
-                 Context *onack, Context *oncommit) {
-    object_t name = calculate_cas_name(bl);
-    while (1) {
-      if (exists(name)) {
-       int err = add_cas_ref(name, parent);
-       if (does not exist)
-         continue;
-       break;
-      } else {
-       write(name, bl, parent);
-       break;
-      }
-    }
-  }
-
-
-
-
-min
-  less than ideal
-want
-  ideal
-max   worst case
-
diff --git a/src/common/cas.h b/src/common/cas.h
deleted file mode 100644 (file)
index cc54177..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-#ifndef CEPH_CAS_H
-#define CEPH_CAS_H
-
-#include "include/object.h"
-
-object_t calc_cas_name(bufferlist &bl);
-void chunk_buffer(bufferlist &bl, list<bufferlist> &chunks);
-
-
-#endif
diff --git a/src/msg/Dispatcher.cc b/src/msg/Dispatcher.cc
deleted file mode 100644 (file)
index 4fa04d7..0000000
+++ /dev/null
@@ -1,28 +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.
- * 
- */
-
-
-
-#include "Dispatcher.h"
-#include "Messenger.h"
-
-#include "mds/MDS.h"
-
-/*
-int Dispatcher::send_message(Message *m, msg_addr_t dest, int dest_port)
-{
-  assert(0);
-  //return dis_messenger->send_message(m, dest, dest_port, MDS_PORT_SERVER);  // on my port!
-}
-*/