Skip to content

Commit 0af484d

Browse files
committed
Update some comments, NFC
1 parent 278be39 commit 0af484d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/Index/IndexDatastore.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,6 @@ void StoreUnitRepo::onFSEvent(std::vector<std::string> changedParentPaths) {
527527
{
528528
ReadTransaction reader(SymIndex->getDBase());
529529
reader.findFilePathsWithParentPaths(parentPathStrRefs, [&](IDCode pathCode, CanonicalFilePathRef filePath) -> bool {
530-
// The timestamp that the file system returns has second precision, so if the file
531-
// was touched in less than a second after it got indexed, it will look like it is not actually dirty.
532-
// FIXME: Use modification-time + file-size to check for updated files.
533530
auto modTime = UnitMonitor::getModTimeForOutOfDateCheck(filePath.getPath());
534531
reader.foreachUnitContainingFile(pathCode, [&](ArrayRef<IDCode> unitCodes) -> bool {
535532
for (IDCode unitCode : unitCodes) {

lib/Support/FilePathWatcher.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ struct FilePathWatcher::Implementation {
3535

3636
FilePathWatcher::Implementation::Implementation(FileEventsReceiverTy pathsReceiver) {
3737
std::vector<std::string> pathsToWatch;
38-
// FIXME: We should do something smarter than watching all of root. In the meantime
39-
// this matches what DVTFoundation is doing as well for DVTFilePaths.
38+
// FIXME: We should do something smarter than watching all of root.
4039
pathsToWatch.push_back("/");
4140

4241
dispatch_queue_attr_t qosAttribute = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_UTILITY, 0);

0 commit comments

Comments
 (0)