Skip to content

Commit

Permalink
remove memory.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLangford committed Jan 2, 2015
1 parent abf03c9 commit 20ebde9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Expand Up @@ -36,7 +36,6 @@ noinst_HEADERS = vowpalwabbit/accumulate.h \
vowpalwabbit/lda_core.h \
vowpalwabbit/log_multi.h \
vowpalwabbit/lrq.h \
vowpalwabbit/memory.h \
vowpalwabbit/mf.h \
vowpalwabbit/multiclass.h \
vowpalwabbit/network.h \
Expand Down
2 changes: 1 addition & 1 deletion vowpalwabbit/Makefile.am
Expand Up @@ -4,7 +4,7 @@ liballreduce_la_SOURCES = allreduce.cc

bin_PROGRAMS = vw active_interactor

libvw_la_SOURCES = hash.cc memory.cc global_data.cc io_buf.cc parse_regressor.cc parse_primitives.cc unique_sort.cc cache.cc rand48.cc simple_label.cc multiclass.cc oaa.cc ect.cc autolink.cc binary.cc lrq.cc cost_sensitive.cc csoaa.cc cb.cc cb_algs.cc search.cc search_sequencetask.cc search_dep_parser.cc search_hooktask.cc search_multiclasstask.cc search_entityrelationtask.cc parse_example.cc scorer.cc network.cc parse_args.cc accumulate.cc gd.cc learner.cc lda_core.cc gd_mf.cc mf.cc bfgs.cc noop.cc print.cc example.cc parser.cc loss_functions.cc sender.cc nn.cc bs.cc cbify.cc topk.cc stagewise_poly.cc log_multi.cc active.cc kernel_svm.cc best_constant.cc ftrl_proximal.cc
libvw_la_SOURCES = hash.cc global_data.cc io_buf.cc parse_regressor.cc parse_primitives.cc unique_sort.cc cache.cc rand48.cc simple_label.cc multiclass.cc oaa.cc ect.cc autolink.cc binary.cc lrq.cc cost_sensitive.cc csoaa.cc cb.cc cb_algs.cc search.cc search_sequencetask.cc search_dep_parser.cc search_hooktask.cc search_multiclasstask.cc search_entityrelationtask.cc parse_example.cc scorer.cc network.cc parse_args.cc accumulate.cc gd.cc learner.cc lda_core.cc gd_mf.cc mf.cc bfgs.cc noop.cc print.cc example.cc parser.cc loss_functions.cc sender.cc nn.cc bs.cc cbify.cc topk.cc stagewise_poly.cc log_multi.cc active.cc kernel_svm.cc best_constant.cc ftrl_proximal.cc

libvw_c_wrapper_la_SOURCES = vwdll.cpp

Expand Down
8 changes: 0 additions & 8 deletions vowpalwabbit/memory.cc

This file was deleted.

8 changes: 2 additions & 6 deletions vowpalwabbit/memory.h
@@ -1,5 +1,4 @@
#pragma once

#include <stdlib.h>
#include <iostream>

Expand All @@ -18,9 +17,6 @@ T* calloc_or_die(size_t nmemb)
}

template<class T> T& calloc_or_die()
{
return *calloc_or_die<T>(1);
}

{ return *calloc_or_die<T>(1); }

void free_it(void* ptr);
inline void free_it(void* ptr) { if (ptr != NULL) free(ptr); }

0 comments on commit 20ebde9

Please sign in to comment.