commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1813326 - in /commons/proper/daemon/trunk/src/native/windows: apps/prunmgr/prunmgr.rc src/utils.c
Date Wed, 25 Oct 2017 17:38:09 GMT
Author: markt
Date: Wed Oct 25 17:38:09 2017
New Revision: 1813326

URL: http://svn.apache.org/viewvc?rev=1813326&view=rev
Log:
Remove code that has been disabled since the first commit some 13+ yeats ago. 

Modified:
    commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.rc
    commons/proper/daemon/trunk/src/native/windows/src/utils.c

Modified: commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.rc
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.rc?rev=1813326&r1=1813325&r2=1813326&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.rc (original)
+++ commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.rc Wed Oct 25 17:38:09
2017
@@ -26,10 +26,6 @@ IDI_ICONRUN          ICON
 IDR_LICENSE          RTF                    "../../resources/license.rtf"
 BMP_JAKARTA          BITMAP                 "../../resources/commons.bmp"
 
-#if 0
-BMP_APMNUHDR         BITMAP                 "../../resources/apmnuhdr.bmp"
-#endif
-
 CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "prunmgr.manifest"
 
 IDD_ABOUTBOX DIALOGEX 0, 0, 337, 187

Modified: commons/proper/daemon/trunk/src/native/windows/src/utils.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/utils.c?rev=1813326&r1=1813325&r2=1813326&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/utils.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/utils.c Wed Oct 25 17:38:09 2017
@@ -368,61 +368,6 @@ apxMultiSzToArrayA(APXHANDLE hPool, LPCS
 
 #define QSTR_DATA(q)    ((char *)(q) + sizeof(APXMULTISZ))
 
-#if 0
-LPAPXMULTISZ apxMultiSzStrdup(LPCTSTR szSrc)
-{
-    LPAPXMULTISZ q;
-
-    if (szSrc) {
-        DWORD l = lstrlen(szSrc);
-        q = (LPAPXMULTISZ)apxAlloc(QSTR_ALIGN(l));
-        q->dwAllocated = QSTR_SIZE(l);
-        q->dwInsert    = l + 1;
-        AplMoveMemory(QSTR_DATA(q), szSrc, l);
-        RtlZeroMemory(QSTR_DATA(q) + l, q->dwAllocated - l);
-    }
-    else {
-        q = (LPAPXMULTISZ)apxCalloc(QSTR_ALIGN(0));
-        q->dwAllocated = QSTR_SIZE(0);
-    }
-
-    return q;
-}
-
-LPTSTR  apxMultiSzStrcat(LPAPXMULTISZ lpmSz, LPCTSTR szSrc)
-{
-    DWORD l = lstrlen(szSrc);
-    LPTSTR p;
-
-    if (lpmSz->dwInsert + l + 2 > lpmSz->dwAllocated) {
-        if ((lpmSz = (LPAPXMULTISZ )apxRealloc(lpmSz, QSTR_ALIGN(lpmSz->dwInsert + l)))
== NULL)
-            return NULL;
-
-        lpmSz->dwAllocated = QSTR_SIZE(lpmSz->dwInsert + l);
-        AplZeroMemory(QSTR_DATA(lpmSz) + lpmSz->dwInsert + l,
-                   lpmSz->dwAllocated - (lpmSz->dwInsert + l));
-    }
-    p = (LPTSTR)QSTR_DATA(lpmSz) + lpmSz->dwInsert;
-    AplMoveMemory(p, szSrc, l);
-
-    lpmSz->dwInsert += (l + 1);
-    return p;
-}
-
-DWORD apxMultiSzLen(LPAPXMULTISZ lpmSz)
-{
-    if (lpmSz->dwInsert)
-        return lpmSz->dwInsert - 1;
-    else
-        return 0;
-}
-
-LPCTSTR apxMultiSzGet(LPAPXMULTISZ lpmSz)
-{
-    return (LPCTSTR)QSTR_DATA(lpmSz);
-}
-#endif
-
 LPTSTR apxStrCharRemove(LPTSTR szString, TCHAR chSkip)
 {
   LPTSTR p = szString;



Mime
View raw message