diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
commit | 335cd830b0bd430d282687df58a91a69dac2c528 (patch) | |
tree | 3d49d43ed0c07d643b9fd081e6eb0522b57851c2 /sal/osl/unx/profile.cxx | |
parent | c04f4393f5ec63dbd546b5c503ddc82d9cd2377e (diff) |
Kill superfluous vertical whitespace
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
Diffstat (limited to 'sal/osl/unx/profile.cxx')
-rw-r--r-- | sal/osl/unx/profile.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index 402bf9cfc7fd..6e7c38bb7311 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -84,7 +84,6 @@ typedef struct _osl_TProfileSection osl_TProfileEntry* m_Entries; } osl_TProfileSection; - /* Profile-data structure hidden behind oslProfile: */ typedef struct _osl_TProfileImpl { @@ -184,7 +183,6 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o } #endif - if ( ( pFile = openFileImpl(pszProfileName, Flags ) ) == NULL ) { #ifdef TRACE_OSL_PROFILE @@ -193,7 +191,6 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o return (NULL); } - pProfile = (osl_TProfileImpl*)calloc(1, sizeof(osl_TProfileImpl)); if ( pProfile == 0 ) @@ -273,7 +270,6 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile) pTmpProfile = acquireProfile(Profile,sal_False); } - if ( pTmpProfile == 0 ) { pthread_mutex_unlock(&(pProfile->m_AccessLock)); @@ -336,7 +332,6 @@ sal_Bool SAL_CALL osl_closeProfile(oslProfile Profile) return (sal_True); } - sal_Bool SAL_CALL osl_flushProfile(oslProfile Profile) { osl_TProfileImpl* pProfile = (osl_TProfileImpl*) Profile; @@ -432,7 +427,6 @@ static sal_Bool writeProfileImpl(osl_TFile* pFile) return sal_True; } - sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile, const sal_Char* pszSection, const sal_Char* pszEntry, @@ -509,7 +503,6 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile, else { /* not implemented */ } - bRet=releaseProfile(pProfile); OSL_ASSERT(bRet); (void)bRet; @@ -830,7 +823,6 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile, return sal_False; } - pProfile = acquireProfile(Profile, sal_True); if (pProfile == NULL) @@ -842,7 +834,6 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile, return (sal_False); } - if (! (pProfile->m_Flags & osl_Profile_SYSTEM)) { if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && @@ -867,7 +858,6 @@ sal_Bool SAL_CALL osl_removeProfileEntry(oslProfile Profile, else { /* not implemented */ } - bRet = releaseProfile(pProfile); OSL_ASSERT(bRet); @@ -934,7 +924,6 @@ sal_uInt32 SAL_CALL osl_getProfileSectionEntries(oslProfile Profile, return (0); } - if (! (pProfile->m_Flags & osl_Profile_SYSTEM)) { if ((pSec = findEntry(pProfile, pszSection, "", &NoEntry)) != NULL) @@ -1065,7 +1054,6 @@ sal_uInt32 SAL_CALL osl_getProfileSections(oslProfile Profile, else { /* not implemented */ } - bRet=releaseProfile(pProfile); OSL_ASSERT(bRet); (void)bRet; @@ -1088,7 +1076,6 @@ static osl_TStamp OslProfile_getFileStamp(osl_TFile* pFile) return (0); } - return (status.st_mtime); } @@ -1129,7 +1116,6 @@ static sal_Bool OslProfile_lockFile(const osl_TFile* pFile, osl_TLockMode eMode) return (sal_False); } - if ( bLockingDisabled ) { #ifdef TRACE_OSL_PROFILE @@ -1138,7 +1124,6 @@ static sal_Bool OslProfile_lockFile(const osl_TFile* pFile, osl_TLockMode eMode) return (sal_True); } - lock.l_start = 0; lock.l_whence = SEEK_SET; lock.l_len = 0; @@ -1275,7 +1260,6 @@ static osl_TStamp closeFileImpl(osl_TFile* pFile, oslProfileOption Flags) pFile->m_Handle = -1; } - if ( pFile->m_pWriteBuf ) { free(pFile->m_pWriteBuf); @@ -1322,7 +1306,6 @@ static sal_Bool OslProfile_rewindFile(osl_TFile* pFile, sal_Bool bTruncate) return bRet; } - static sal_Char* OslProfile_getLine(osl_TFile* pFile) { int Max, Free, Bytes, nLineBytes = 0; @@ -1448,8 +1431,6 @@ static sal_Bool OslProfile_putLine(osl_TFile* pFile, const sal_Char *pszLine) } } - - memcpy(pFile->m_pWriteBuf + ( pFile->m_nWriteBufLen - pFile->m_nWriteBufFree ),pszLine,Len+1); #ifdef DEBUG_OSL_PROFILE strLen = strlen(pFile->m_pWriteBuf); @@ -1561,7 +1542,6 @@ static sal_Char* insertLine(osl_TProfileImpl* pProfile, const sal_Char* Line, sa memmove(&pProfile->m_Lines[LineNo + 1], &pProfile->m_Lines[LineNo], (pProfile->m_NoLines - LineNo) * sizeof(sal_Char *)); - /* adjust line references */ for (i = 0; i < pProfile->m_NoSections; i++) { @@ -1839,7 +1819,6 @@ static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile) sal_Char* pLine; sal_Char* bWasAdded = NULL; - if ( !pFile ) { return sal_False; @@ -2013,7 +1992,6 @@ static osl_TFile* osl_openTmpProfileImpl(osl_TProfileImpl* pProfile) /* open this file */ pFile = openFileImpl(pszTmpName,pProfile->m_Flags | PFlags); - /* return new pFile */ return pFile; } @@ -2081,7 +2059,6 @@ static void osl_ProfileGenerateExtension(const sal_Char* pszFileName, const sal_ return; } - static osl_TProfileImpl* acquireProfile(oslProfile Profile, sal_Bool bWriteable) { osl_TProfileImpl* pProfile = (osl_TProfileImpl*)Profile; @@ -2096,7 +2073,6 @@ static osl_TProfileImpl* acquireProfile(oslProfile Profile, sal_Bool bWriteable) PFlags = osl_Profile_DEFAULT; } - if (pProfile == NULL) { #ifdef DEBUG_OSL_PROFILE |