Skip to content

Commit 5e1e4f2

Browse files
committed
Remove identical pool check for now
We'll use SolvableId like DepId in the future, so this needs to be done in a different way.
1 parent 693dd20 commit 5e1e4f2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

bindings/solv.i

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -663,12 +663,6 @@ SWIG_AsValDepId(void *obj, int *val) {
663663
%typemaps_asval(%checkcode(POINTER), SWIG_AsValSolvFpPtr, "SWIG_AsValSolvFpPtr", FILE*);
664664
%typemaps_asval(%checkcode(INT32), SWIG_AsValDepId, "SWIG_AsValDepId", DepId);
665665

666-
%define SamePool(pool1,pool2) %{ {
667-
if (pool1 != pool2)
668-
SWIG_exception_fail(SWIG_ArgError(EINVAL), "pool of argument $argnum must be same as pool in method's object");
669-
}
670-
%}
671-
%enddef
672666

673667
/**
674668
** the C declarations
@@ -1073,12 +1067,10 @@ typedef struct {
10731067
Id what;
10741068
} Job;
10751069

1076-
%typemap(check) XSolvable *pool_solvable SamePool($1->pool, arg1)
10771070
%nodefaultctor Pool;
10781071
%nodefaultdtor Pool;
10791072
typedef struct {
10801073
} Pool;
1081-
%typemap(check) XSolvable *pool_solvable;
10821074

10831075
%nodefaultctor Repo;
10841076
%nodefaultdtor Repo;

0 commit comments

Comments
 (0)