Title: [277168] trunk/Source/WTF
Revision
277168
Author
commit-qu...@webkit.org
Date
2021-05-07 04:46:48 -0700 (Fri, 07 May 2021)

Log Message

[GTK] Warnings about unused filesystem functions
https://bugs.webkit.org/show_bug.cgi?id=225507

Patch by Philippe Normand <pnorm...@igalia.com> on 2021-05-07
Reviewed by Adrian Perez de Castro.

Since r277158 these functions are no longer needed.

* wtf/glib/FileSystemGlib.cpp:
(WTF::FileSystemImpl::getFileStat): Deleted.
(WTF::FileSystemImpl::getFileLStat): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (277167 => 277168)


--- trunk/Source/WTF/ChangeLog	2021-05-07 10:02:19 UTC (rev 277167)
+++ trunk/Source/WTF/ChangeLog	2021-05-07 11:46:48 UTC (rev 277168)
@@ -1,3 +1,16 @@
+2021-05-07  Philippe Normand  <pnorm...@igalia.com>
+
+        [GTK] Warnings about unused filesystem functions
+        https://bugs.webkit.org/show_bug.cgi?id=225507
+
+        Reviewed by Adrian Perez de Castro.
+
+        Since r277158 these functions are no longer needed.
+        
+        * wtf/glib/FileSystemGlib.cpp:
+        (WTF::FileSystemImpl::getFileStat): Deleted.
+        (WTF::FileSystemImpl::getFileLStat): Deleted.
+
 2021-05-06  Chris Dumez  <cdu...@apple.com>
 
         Port Filesystem::fileMetadata() & Filesystem::getFileModificationTime() to std::filesystem

Modified: trunk/Source/WTF/wtf/glib/FileSystemGlib.cpp (277167 => 277168)


--- trunk/Source/WTF/wtf/glib/FileSystemGlib.cpp	2021-05-07 10:02:19 UTC (rev 277167)
+++ trunk/Source/WTF/wtf/glib/FileSystemGlib.cpp	2021-05-07 11:46:48 UTC (rev 277168)
@@ -118,24 +118,6 @@
 #endif
 }
 
-static bool getFileStat(const String& path, GStatBuf* statBuffer)
-{
-    auto filename = fileSystemRepresentation(path);
-    if (!validRepresentation(filename))
-        return false;
-
-    return g_stat(filename.data(), statBuffer) != -1;
-}
-
-static bool getFileLStat(const String& path, GStatBuf* statBuffer)
-{
-    auto filename = fileSystemRepresentation(path);
-    if (!validRepresentation(filename))
-        return false;
-
-    return g_lstat(filename.data(), statBuffer) != -1;
-}
-
 bool getFileSize(PlatformFileHandle handle, long long& resultSize)
 {
     GRefPtr<GFileInfo> info = adoptGRef(g_file_io_stream_query_info(handle, G_FILE_ATTRIBUTE_STANDARD_SIZE, nullptr, nullptr));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to