浏览代码

Code orphaned by 1bd51d52

Source commit: 246946e7420c67f56ccb66dc4ba9bfacd071b84c
Martin Prikryl 11 月之前
父节点
当前提交
7000e38cc6
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      source/packages/my/PasTools.pas

+ 0 - 8
source/packages/my/PasTools.pas

@@ -34,8 +34,6 @@ function HasSystemParametersInfoForPixelsPerInch: Boolean;
 function SystemParametersInfoForPixelsPerInch(
   uiAction, uiParam: UINT; pvParam: Pointer; fWinIni: UINT; dpi: UINT): BOOL;
 
-procedure GetFormScaleRatio(Form: TForm; var M, D: Integer);
-
 function GetMonitorFromControl(Control: TControl): TMonitor;
 function GetMonitorPixelsPerInch(Monitor: TMonitor): Integer;
 function GetControlPixelsPerInch(Control: TControl): Integer;
@@ -471,12 +469,6 @@ begin
   end;
 end;
 
-procedure GetFormScaleRatio(Form: TForm; var M, D: Integer);
-begin
-  M := CalculateTextHeight(Form.Canvas);
-  D := Form.RetrieveTextHeight;
-end;
-
 // this differs from ScaleByTextHeight only by enforcing
 // constant design-time text height
 function ScaleByTextHeightRunTime(Control: TControl; Dimension: Integer): Integer;