From d55e98b5203c45362c712674fb8ebcd1abfec3b2 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Thu, 7 Apr 2011 14:06:53 -0700 Subject: [PATCH] common, msg: Remove dead code. Looks like these never went anywhere. Signed-off-by: Tommi Virtanen --- src/common/cas.cc | 44 ------------------------------------------- src/common/cas.h | 12 ------------ src/msg/Dispatcher.cc | 28 --------------------------- 3 files changed, 84 deletions(-) delete mode 100644 src/common/cas.cc delete mode 100644 src/common/cas.h delete mode 100644 src/msg/Dispatcher.cc diff --git a/src/common/cas.cc b/src/common/cas.cc deleted file mode 100644 index 5505097ee5dda..0000000000000 --- a/src/common/cas.cc +++ /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 &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 index cc54177048961..0000000000000 --- a/src/common/cas.h +++ /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 &chunks); - - -#endif diff --git a/src/msg/Dispatcher.cc b/src/msg/Dispatcher.cc deleted file mode 100644 index 4fa04d7d4c92a..0000000000000 --- a/src/msg/Dispatcher.cc +++ /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 - * - * 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! -} -*/ -- 2.39.5