]> git.tdb.fi Git - builder.git/blobdiff - source/packageref.h
Refactor code to get rid of class PackageRef
[builder.git] / source / packageref.h
diff --git a/source/packageref.h b/source/packageref.h
deleted file mode 100644 (file)
index 7d2f547..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#ifndef PACKAGEREF_H_
-#define PACKAGEREF_H_
-
-#include <list>
-#include <string>
-
-class Builder;
-class Package;
-
-/**
-A proxy class that stores a package name and possibly a pointer to the package.
-*/
-class PackageRef
-{
-public:
-       PackageRef(Builder &, const std::string &);
-       const std::string &get_name() const { return name; }
-       Package *get_package() const { return package; }
-       Package *resolve();
-private:
-       Builder     &builder;
-       std::string name;
-       Package     *package;
-};
-typedef std::list<PackageRef> PkgRefList;
-
-#endif