Skip to content

Commit

Permalink
remove unused TargetFileHasOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 29, 2018
1 parent 3f3f0dc commit 93eb2bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions src/PkgFunctions.h
Expand Up @@ -605,8 +605,6 @@ class PkgFunctions
YCPValue TargetInitDU (const YCPList&);
/* TYPEINFO: map<string,list<integer>>()*/
YCPValue TargetGetDU ();
/* TYPEINFO: boolean(string)*/
YCPBoolean TargetFileHasOwner (const YCPString&);
/* TYPEINFO: boolean(string,symbol)*/
YCPBoolean TargetStoreRemove(const YCPString& root, const YCPSymbol& kind_r);

Expand Down
23 changes: 0 additions & 23 deletions src/Target.cc
Expand Up @@ -157,29 +157,6 @@ PkgFunctions::TargetRebuildDB ()
}


/**
@builtin TargetFileHasOwner
@short returns true if the file is owned by a package
@param string filepath
@return boolean
*/

YCPBoolean
PkgFunctions::TargetFileHasOwner (const YCPString& filepath)
{
try
{
return YCPBoolean (!zypp_ptr()->target()->whoOwnsFile(filepath->value()).empty());
}
catch (...)
{
}

return YCPBoolean(false);
}


/**
@builtin TargetStoreRemove
Expand Down

0 comments on commit 93eb2bd

Please sign in to comment.