Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1b1c11f5
Kaydet (Commit)
1b1c11f5
authored
Eki 28, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin dead and commented-out code
Change-Id: I4c3d666155af4bd36e819c077f660a30dbe72cdb
üst
e901c15c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+0
-40
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
1b1c11f5
...
@@ -76,45 +76,6 @@ OString getCacheFolder()
...
@@ -76,45 +76,6 @@ OString getCacheFolder()
return
rtl
::
OUStringToOString
(
url
,
RTL_TEXTENCODING_UTF8
);
return
rtl
::
OUStringToOString
(
url
,
RTL_TEXTENCODING_UTF8
);
}
}
void
clearCache
()
{
#if 0
// We used to delete all files that did not end with the hash of
// the static kernel source string from oclkernels.hxx. But as
// those static kernels were not used for anything, it was
// pointless, that hash never changed. The static kernels are now
// removed, their hash is not part of the .bin file names any
// more. So there is little this function can do until we come up
// with some other way to figure out which cached .bin files are
// "current".
OUString aCacheDirURL(rtl::OStringToOUString(OpenCLDevice::maCacheFolder, RTL_TEXTENCODING_UTF8));
osl::Directory aCacheDir(aCacheDirURL);
osl::FileBase::RC status = aCacheDir.open();
if(status != osl::FileBase::E_None)
return;
osl::DirectoryItem aItem;
while(osl::FileBase::E_None == aCacheDir.getNextItem(aItem))
{
osl::FileStatus aFileStatus(osl_FileStatus_Mask_FileName|osl_FileStatus_Mask_FileURL);
status = aItem.getFileStatus(aFileStatus);
if(status != osl::FileBase::E_None)
continue;
OUString aFileName = aFileStatus.getFileName();
if(aFileName.endsWith(".bin"))
{
if ( file is in some way obsolete )
{
// delete the file
OUString aFileUrl = aFileStatus.getFileURL();
osl::File::remove(aFileUrl);
}
}
}
#endif
}
}
}
OString
OpenCLDevice
::
maCacheFolder
=
getCacheFolder
();
OString
OpenCLDevice
::
maCacheFolder
=
getCacheFolder
();
...
@@ -212,7 +173,6 @@ std::vector<boost::shared_ptr<osl::File> > OpenCLDevice::binaryGenerated( const
...
@@ -212,7 +173,6 @@ std::vector<boost::shared_ptr<osl::File> > OpenCLDevice::binaryGenerated( const
bool
OpenCLDevice
::
writeBinaryToFile
(
const
OString
&
rFileName
,
const
char
*
binary
,
size_t
numBytes
)
bool
OpenCLDevice
::
writeBinaryToFile
(
const
OString
&
rFileName
,
const
char
*
binary
,
size_t
numBytes
)
{
{
clearCache
();
osl
::
File
file
(
rtl
::
OStringToOUString
(
rFileName
,
RTL_TEXTENCODING_UTF8
));
osl
::
File
file
(
rtl
::
OStringToOUString
(
rFileName
,
RTL_TEXTENCODING_UTF8
));
osl
::
FileBase
::
RC
status
=
file
.
open
(
osl
::
FileBase
::
RC
status
=
file
.
open
(
osl_File_OpenFlag_Write
|
osl_File_OpenFlag_Create
);
osl_File_OpenFlag_Write
|
osl_File_OpenFlag_Create
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment