Skip to content

Commit c8ee454

Browse files
committed
sync with P4D: Removed unneeded Number Methods
1 parent a3ae17d commit c8ee454

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

python4lazarus/PythonEngine.pas

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,6 @@ TPyObject = class
23152315
function NbAdd( obj : PPyObject) : PPyObject; virtual;
23162316
function NbSubtract( obj : PPyObject) : PPyObject; virtual;
23172317
function NbMultiply( obj : PPyObject) : PPyObject; virtual;
2318-
function NbDivide( obj : PPyObject) : PPyObject; virtual;
23192318
function NbFloorDivide( obj : PPyObject) : PPyObject; virtual;
23202319
function NbTrueDivide( obj : PPyObject) : PPyObject; virtual;
23212320
function NbMatrixMultiply( obj : PPyObject) : PPyObject; virtual;
@@ -2325,20 +2324,15 @@ TPyObject = class
23252324
function NbNegative : PPyObject; virtual;
23262325
function NbPositive : PPyObject; virtual;
23272326
function NbAbsolute : PPyObject; virtual;
2328-
function NbNonZero : Integer; virtual;
23292327
function NbBool : Integer; virtual;
23302328
function NbInvert : PPyObject; virtual;
23312329
function NbLShift( obj : PPyObject) : PPyObject; virtual;
23322330
function NbRShift( obj : PPyObject) : PPyObject; virtual;
23332331
function NbAnd( obj : PPyObject) : PPyObject; virtual;
23342332
function NbXor( obj : PPyObject) : PPyObject; virtual;
23352333
function NbOr( obj : PPyObject) : PPyObject; virtual;
2336-
function NbCoerce( obj : PPPyObject) : Integer; virtual;
23372334
function NbInt : PPyObject; virtual;
2338-
function NbLong : PPyObject; virtual;
23392335
function NbFloat : PPyObject; virtual;
2340-
function NbOct : PPyObject; virtual;
2341-
function NbHex : PPyObject; virtual;
23422336
function NbInplaceAdd( obj : PPyObject): PPyObject; virtual;
23432337
function NbInplaceSubtract( obj : PPyObject): PPyObject; virtual;
23442338
function NbInplaceMultiply( obj : PPyObject): PPyObject; virtual;
@@ -7044,11 +7038,6 @@ function TPyObject.NbMultiply( obj : PPyObject) : PPyObject;
70447038
Result := nil;
70457039
end;
70467040

7047-
function TPyObject.NbDivide( obj : PPyObject) : PPyObject;
7048-
begin
7049-
Result := nil;
7050-
end;
7051-
70527041
function TPyObject.NbFloorDivide( obj : PPyObject) : PPyObject;
70537042
begin
70547043
Result := nil;
@@ -7094,11 +7083,6 @@ function TPyObject.NbAbsolute : PPyObject;
70947083
Result := nil;
70957084
end;
70967085

7097-
function TPyObject.NbNonZero : Integer;
7098-
begin
7099-
Result := -1;
7100-
end;
7101-
71027086
function TPyObject.NbBool : Integer;
71037087
begin
71047088
Result := 0;
@@ -7134,36 +7118,16 @@ function TPyObject.NbOr( obj : PPyObject) : PPyObject;
71347118
Result := nil;
71357119
end;
71367120

7137-
function TPyObject.NbCoerce( obj : PPPyObject) : Integer;
7138-
begin
7139-
Result := 0;
7140-
end;
7141-
71427121
function TPyObject.NbInt : PPyObject;
71437122
begin
71447123
Result := nil;
71457124
end;
71467125

7147-
function TPyObject.NbLong : PPyObject;
7148-
begin
7149-
Result := nil;
7150-
end;
7151-
71527126
function TPyObject.NbFloat : PPyObject;
71537127
begin
71547128
Result := nil;
71557129
end;
71567130

7157-
function TPyObject.NbOct : PPyObject;
7158-
begin
7159-
Result := nil;
7160-
end;
7161-
7162-
function TPyObject.NbHex : PPyObject;
7163-
begin
7164-
Result := nil;
7165-
end;
7166-
71677131
function TPyObject.NbInplaceAdd(obj: PPyObject): PPyObject;
71687132
begin
71697133
Result := nil;
@@ -7630,11 +7594,6 @@ function TPythonType_NbMultiply( pSelf, obj : PPyObject) : PPyObject; cdecl;
76307594
Result := PythonToDelphi(pSelf).NbMultiply( obj );
76317595
end;
76327596

7633-
function TPythonType_NbDivide( pSelf, obj : PPyObject) : PPyObject; cdecl;
7634-
begin
7635-
Result := PythonToDelphi(pSelf).NbDivide( obj );
7636-
end;
7637-
76387597
function TPythonType_NbFloorDivide( pSelf, obj : PPyObject) : PPyObject; cdecl;
76397598
begin
76407599
Result := PythonToDelphi(pSelf).NbFloorDivide( obj );
@@ -7680,11 +7639,6 @@ function TPythonType_NbAbsolute( pSelf : PPyObject ) : PPyObject; cdecl;
76807639
Result := PythonToDelphi(pSelf).NbAbsolute;
76817640
end;
76827641

7683-
function TPythonType_NbNonZero( pSelf : PPyObject ) : Integer; cdecl;
7684-
begin
7685-
Result := PythonToDelphi(pSelf).NbNonZero;
7686-
end;
7687-
76887642
function TPythonType_NbBool( pSelf : PPyObject ) : Integer; cdecl;
76897643
begin
76907644
Result := PythonToDelphi(pSelf).NbBool;
@@ -7720,36 +7674,16 @@ function TPythonType_NbOr( pSelf, obj : PPyObject) : PPyObject; cdecl;
77207674
Result := PythonToDelphi(pSelf).NbOr( obj );
77217675
end;
77227676

7723-
function TPythonType_NbCoerce( pSelf, obj : PPPyObject) : Integer; cdecl;
7724-
begin
7725-
Result := PythonToDelphi(pSelf^).NbCoerce( obj );
7726-
end;
7727-
77287677
function TPythonType_NbInt( pSelf : PPyObject ) : PPyObject; cdecl;
77297678
begin
77307679
Result := PythonToDelphi(pSelf).NbInt;
77317680
end;
77327681

7733-
function TPythonType_NbLong( pSelf : PPyObject ) : PPyObject; cdecl;
7734-
begin
7735-
Result := PythonToDelphi(pSelf).NbLong;
7736-
end;
7737-
77387682
function TPythonType_NbFloat( pSelf : PPyObject ) : PPyObject; cdecl;
77397683
begin
77407684
Result := PythonToDelphi(pSelf).NbFloat;
77417685
end;
77427686

7743-
function TPythonType_NbOct( pSelf : PPyObject ) : PPyObject; cdecl;
7744-
begin
7745-
Result := PythonToDelphi(pSelf).NbOct;
7746-
end;
7747-
7748-
function TPythonType_NbHex( pSelf : PPyObject ) : PPyObject; cdecl;
7749-
begin
7750-
Result := PythonToDelphi(pSelf).NbHex;
7751-
end;
7752-
77537687
function TPythonType_NbInplaceAdd(pSelf, obj: PPyObject): PPyObject; cdecl;
77547688
begin
77557689
Result := PythonToDelphi(pSelf).NbInplaceAdd( obj );

0 commit comments

Comments
 (0)